<div class="user_search_form"></div>

<table class="easyui-datagrid user_search_result" title="" style="width:100%,height:250px"
       data-options="singleSelect:true,collapsible:true">
    <thead>
    <tr>
        <th data-options="field:'_id',width:0"></th>
        <th data-options="field:'_loginname',width:80">用户名</th>
        <th data-options="field:'_sex',width:80">性别</th>
    </tr>
    </thead>
</table>


<script type="text/javascript">
    $('.user_search_form').bigwin('loadView','forms/user_search_form');

    $('.user_search_result').datagrid({toolbar: [{
        text:'提升为团体会员',
        iconCls: 'icon-edit',
        handler: function(){
            var selected=$('.user_search_result').datagrid('getSelected');
            var id=selected._id;
            var avatar=selected._avatarId;
            $('.content .right').bigwin('loadView','forms/partner_edit_form',function(){
                console.log(selected);
                $('form.partner_edit_from').form('load',{_id:id,avatar_id:avatar});
            });
        }
    },'-']});

</script>